#!/usr/bin/env bash
declare -A my_assoc_array
my_assoc_array[apple]="green"
my_assoc_array[banana]="yellow"
my_assoc_array[cherry]="red"
for key in "${!my_assoc_array[@]}"
do
  echo "$key: ${my_assoc_array[$key]}"
done
echo "The color of an apple is: ${my_assoc_array[apple]}"